package cn.ibizlab.odoo.core.odoo_account.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_account.domain.Account_payment;
import cn.ibizlab.odoo.core.odoo_account.filter.Account_paymentSearchContext;

/**
 * 实体[Account_payment] 服务对象接口
 */

public interface IAccount_paymentService{
     boolean update(Account_payment account_payment) ;
     boolean remove(Integer id) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     void updateBatch(List<Account_payment> account_payments, int batchSize) ;
     boolean create(Account_payment account_payment) ;
     Account_payment get(Integer id) ;
     Account_payment get(Account_payment account_payment) ;
     void createBatch(List<Account_payment> account_payments, int batchSize) ;

    /**
     * 查询集合 默认查询
     */
    Page<Account_payment> searchDefault(Account_paymentSearchContext context) ;

    /**
     * 根据科目查询
     */
     Page<Account_payment> selectByOdoo_writeoff_account(Integer id) ;

    /**
     * 根据日记账查询
     */
     Page<Account_payment> selectByOdoo_destination_journal(Integer id) ;

    /**
     * 根据日记账查询
     */
     Page<Account_payment> selectByOdoo_journal(Integer id) ;

    /**
     * 根据付款方法查询
     */
     Page<Account_payment> selectByOdoo_payment_method(Integer id) ;

    /**
     * 根据付款令牌查询
     */
     Page<Account_payment> selectByOdoo_payment_token(Integer id) ;

    /**
     * 根据付款交易查询
     */
     Page<Account_payment> selectByOdoo_payment_transaction(Integer id) ;

    /**
     * 根据币种查询
     */
     Page<Account_payment> selectByOdoo_currency(Integer id) ;

    /**
     * 根据银行账户查询
     */
     Page<Account_payment> selectByOdoo_partner_bank_account(Integer id) ;

    /**
     * 根据联系人查询
     */
     Page<Account_payment> selectByOdoo_partner(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Account_payment> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Account_payment> selectByOdoo_write(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Account_payment convert2Domain(cn.ibizlab.odoo.core.client.model.Iaccount_payment model ,Account_payment domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Iaccount_payment convert2Model(Account_payment domain , cn.ibizlab.odoo.core.client.model.Iaccount_payment model);

}
